PROJECT(asn_application)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

add_definitions(-Wall)
SET(C_SRC_LIST 
AL_RRC_AC_BarringConfig1XRTT_r9.c
AL_RRC_AC_BarringConfig.c
AL_RRC_Ac_BarringFactor.c
AL_RRC_Ac_BarringInfo.c
AL_RRC_Ac_BarringTime.c
AL_RRC_AllowedMeasBandwidth.c
AL_RRC_Alpha.c
AL_RRC_BandclassCDMA2000.c
AL_RRC_BandClassInfoCDMA2000.c
AL_RRC_BandIndicatorGERAN.c
AL_RRC_BCCH_Config.c
AL_RRC_BCCH_DL_SCH_Message.c
AL_RRC_BCCH_DL_SCH_MessageType.c
AL_RRC_BCCH_DL_SCH_MessageType_C1.c
AL_RRC_BCCH_DL_SCH_MessageType_MessageClassExtension.c
AL_RRC_CarrierFreqsGERAN.c
AL_RRC_CarrierFreqsInfoGERAN.c
AL_RRC_CarrierFreqUTRA_FDD.c
AL_RRC_CarrierFreqUTRA_FDD_ThreshX_Q_r9.c
AL_RRC_CarrierFreqUTRA_TDD.c
AL_RRC_Cdma_SystemTime.c
AL_RRC_CellAccessRelatedInfo.c
AL_RRC_CellBarred.c
AL_RRC_CellReselectionInfoCommon.c
AL_RRC_CellReselectionParametersCDMA2000.c
AL_RRC_CellReselectionParametersCDMA2000_v920.c
AL_RRC_CellReselectionServingFreqInfo.c
AL_RRC_CellReservedForOperatorUse.c
AL_RRC_CellSelectionInfo.c
AL_RRC_CellSelectionInfo_v920.c
AL_RRC_CommonInfo.c
AL_RRC_CSFB_RegistrationParam1XRTT.c
AL_RRC_CSFB_RegistrationParam1XRTT_v920.c
AL_RRC_DefaultPagingCycle.c
AL_RRC_DeltaFList_PUCCH.c
AL_RRC_DeltaF_PUCCH_Format1b.c
AL_RRC_DeltaF_PUCCH_Format1.c
AL_RRC_DeltaF_PUCCH_Format2a.c
AL_RRC_DeltaF_PUCCH_Format2b.c
AL_RRC_DeltaF_PUCCH_Format2.c
AL_RRC_DeltaPUCCH_Shift.c
AL_RRC_EquallySpacedARFCNs.c
AL_RRC_EUTRA_RRC_Definitions.c
AL_RRC_FollowingARFCNs.c
AL_RRC_FreqInfo.c
AL_RRC_HoppingMode.c
AL_RRC_Ims_EmergencySupport_r9.c
AL_RRC_InterFreqCarrierFreqInfo.c
AL_RRC_InterFreqNeighCellInfo.c
AL_RRC_IntraFreqCellReselectionInfo.c
AL_RRC_IntraFreqNeighCellInfo.c
AL_RRC_IntraFreqReselection.c
AL_RRC_Mac_ContentionResolutionTimer.c
AL_RRC_MBMS_NotificationConfig_r9.c
AL_RRC_MBSFN_AreaInfo_r9.c
AL_RRC_MBSFN_SubframeConfig.c
AL_RRC_Mcch_Config_r9.c
AL_RRC_Mcch_ModificationPeriod_r9.c
AL_RRC_Mcch_RepetitionPeriod_r9.c
AL_RRC_MessagePowerOffsetGroupB.c
AL_RRC_MessageSizeGroupA.c
AL_RRC_MobilityStateParameters.c
AL_RRC_ModificationPeriodCoeff.c
AL_RRC_N310.c
AL_RRC_N311.c
AL_RRC_NB.c
AL_RRC_NeighCellCDMA2000.c
AL_RRC_NeighCellCDMA2000_v920.c
AL_RRC_NeighCellsPerBandclassCDMA2000.c
AL_RRC_NeighCellsPerBandclassCDMA2000_v920.c
AL_RRC_Non_MBSFNregionLength.c
AL_RRC_NotificationRepetitionCoeff_r9.c
AL_RRC_NumberOfRA_Preambles.c
AL_RRC_Parameters1XRTT.c
AL_RRC_ParametersHRPD.c
AL_RRC_PCCH_Config.c
AL_RRC_PDSCH_ConfigCommon.c
AL_RRC_PhysCellIdRange.c
AL_RRC_PLMN_Identity.c
AL_RRC_PLMN_IdentityInfo.c
AL_RRC_PowerDownReg_r9.c
AL_RRC_PowerRampingParameters.c
AL_RRC_PowerRampingStep.c
AL_RRC_PRACH_ConfigInfo.c
AL_RRC_PRACH_ConfigSIB.c
AL_RRC_PreambleInfo.c
AL_RRC_PreambleInitialReceivedTargetPower.c
AL_RRC_PreamblesGroupAConfig.c
AL_RRC_PreambleTransMax.c
AL_RRC_PreRegistrationInfoHRPD.c
AL_RRC_PUCCH_ConfigCommon.c
AL_RRC_Pusch_ConfigBasic.c
AL_RRC_PUSCH_ConfigCommon.c
AL_RRC_Q_Hyst.c
AL_RRC_Q_HystSF.c
AL_RRC_Q_OffsetRange.c
AL_RRC_RACH_ConfigCommon.c
AL_RRC_RadioframeAllocationPeriod.c
AL_RRC_RadioResourceConfigCommonSIB.c
AL_RRC_Range.c
AL_RRC_Ra_ResponseWindowSize.c
AL_RRC_Ra_SupervisionInfo.c
AL_RRC_SchedulingInfo.c
AL_RRC_Setup.c
AL_RRC_Sf_High.c
AL_RRC_Sf_Medium.c
AL_RRC_Sib_TypeAndInfo.c
AL_RRC_SIB_Type.c
AL_RRC_SignallingMCS_r9.c
AL_RRC_S_IntraSearch_v920.c
AL_RRC_Si_Periodicity.c
AL_RRC_Si_WindowLength.c
AL_RRC_SizeOfRA_PreamblesGroupA.c
AL_RRC_S_NonIntraSearch_v920.c
AL_RRC_SoundingRS_UL_ConfigCommon.c
AL_RRC_SpecialSubframePatterns.c
AL_RRC_SpeedStateReselectionPars.c
AL_RRC_SpeedStateScaleFactors.c
AL_RRC_SpeedStateScaleFactors_Sf_High.c
AL_RRC_SpeedStateScaleFactors_Sf_Medium.c
AL_RRC_Srs_BandwidthConfig.c
AL_RRC_Srs_MaxUpPts.c
AL_RRC_Srs_SubframeConfig.c
AL_RRC_SubframeAllocation.c
AL_RRC_SubframeAssignment.c
AL_RRC_SystemInformationBlockType10.c
AL_RRC_SystemInformationBlockType11.c
AL_RRC_SystemInformationBlockType12_r9.c
AL_RRC_SystemInformationBlockType13_r9.c
AL_RRC_SystemInformationBlockType1.c
AL_RRC_SystemInformationBlockType1_v890_IEs.c
AL_RRC_SystemInformationBlockType1_v920_IEs.c
AL_RRC_SystemInformationBlockType1_v920_IEs_NonCriticalExtension.c
AL_RRC_SystemInformationBlockType2.c
AL_RRC_SystemInformationBlockType3.c
AL_RRC_SystemInformationBlockType4.c
AL_RRC_SystemInformationBlockType5.c
AL_RRC_SystemInformationBlockType6.c
AL_RRC_SystemInformationBlockType7.c
AL_RRC_SystemInformationBlockType8.c
AL_RRC_SystemInformationBlockType9.c
AL_RRC_SystemInformation.c
AL_RRC_SystemInformation_CriticalExtensions.c
AL_RRC_SystemInformation_CriticalExtensions_CriticalExtensionsFuture.c
AL_RRC_SystemInformation_r8_IEs.c
AL_RRC_SystemInformation_v8a0_IEs.c
AL_RRC_SystemInformation_v8a0_IEs_NonCriticalExtension.c
AL_RRC_SystemTimeInfoCDMA2000.c
AL_RRC_T300.c
AL_RRC_T301.c
AL_RRC_T310.c
AL_RRC_T311.c
AL_RRC_TDD_Config.c
AL_RRC_T_Evaluation.c
AL_RRC_ThreshX_Q_r9.c
AL_RRC_T_HystNormal.c
AL_RRC_TimeAlignmentTimer.c
AL_RRC_UE_TimersAndConstants.c
AL_RRC_Ul_Bandwidth.c
AL_RRC_UL_CyclicPrefixLength.c
AL_RRC_UL_ReferenceSignalsPUSCH.c
AL_RRC_UplinkPowerControlCommon.c
AL_RRC_WarningMessageSegmentType.c
AL_RRC_WarningMessageSegmentType_r9.c)

SET(CPP_SRC_LIST RrcAsnCodecApi.cc CallpAsnTypes.cc RrcMessageTypes.cc)

IF(NOT EXISTS ${EXECUTABLE_OUTPUT_PATH})
    EXEC_PROGRAM(mkdir ${PROJECT_SOURCE_DIR} ARGS ${EXECUTABLE_OUTPUT_PATH})
ENDIF()

ADD_LIBRARY(asncrrc STATIC ${C_SRC_LIST})
ADD_LIBRARY(asncpprrc STATIC ${CPP_SRC_LIST})